import * as React from "react";
import { Skeleton } from "@/components/ui/skeleton";
import { Shell } from "@/components/shell";
import { ErrorBoundary } from "@/components/error-boundary";
import { getDashboardData } from "@/lib/dashboard/service";
import { DashboardClient } from "@/lib/dashboard/dashboard-client";
export default async function IndexPage() {
// domain을 명시적으로 전달
const domain = "engineering";
try {
// 서버에서 직접 데이터 fetch
const dashboardData = await getDashboardData(domain);
return (
데이터를 불러오는데 실패했습니다. {error instanceof Error ? error.message : "알 수 없는 오류가 발생했습니다."}